package com.ebt.m.users;

import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.view.View;

import com.ebt.m.AppContext;
import com.ebt.m.R;
import com.ebt.m.activity.BaseToolBarActivity;
import com.ebt.m.data.bean.CardInfo;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by wanglu on 2018/2/7.
 */

public class CardActivity extends BaseToolBarActivity {
    @BindView(R.id.card_view)
    CardDataContent cardView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_carddata);
        getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_TITLE);
        setTitle("我的名片");
        ButterKnife.bind(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        cardView.post(() -> cardView.update());
    }
}
